﻿<?php
	require_once('template/template1.phtml');
	require_once('left_xuly.php');
?>	

	<div class="right">
		<div class="title_step">
			<ul><li class="active"><div><span>Chi tiết giỏ hàng </span></div></li></ul>
		</div>						
		<!--
		<div class="wapper_sp_content">
		</div>
		-->
		<div class='box_bd_bg'>
			<?php
				$total = 0;
				if ($numSP == 0)
					echo "Khong co san pham nao trong gio hang";
				else{
					echo "<table border='1'>";
					echo 	"<tr>";
					echo 		"<td>Ten san pham </td>";
					echo 		"<td>SL </td>";
					echo 		"<td>Gia</td>";
					echo 		"<td>Tong </td>";
					echo 	"</tr>";
					foreach($spCart as $value){
					echo 	"<tr>";
					echo 		"<td>{$value['ten_sp']}</td>";
					echo 		"<td>{$value['sl']} </td>";
					echo 		"<td>{$value['gia']}</td>";
					echo 		"<td>{$value['total']} </td>";
					echo 	"</tr>";
					$total += $value['total'];
					}
					echo "</table><br/>";
					echo "Tong gia tri don hang la: $total";
				}
				
			?>
		</div>
		
	</div>
	
<?php	
	require_once('template/template2.phtml');
?>